using namespace std;
#include<iostream>
#include<unistd.h>
#include<signal.h>
void message(int sig)
{
    cout<<"receive signal "<<sig<<endl;
}
int main()
{
    signal(3,message);
    while(true)
    {
        raise(3);
        sleep(2);
    }
    return 0;
}